<!DOCTYPE html>
<html>
<head>
    <title>Crawlers</title>
</head>
<body class="list">

$message()$
<table class="results zebra-striped">
    $thead(headers=["name", "updates", "from", "action" ])$
    <tbody>
    $items:item(item=it)$
    </tbody>
</table>

<div class="actions">
    <a href="new" class="new">New</a>
    <a href="import" class="import">Import</a>

    $if(anyExists)$
        $post(name="crawlAll", value="Crawl All")$
        $post(name="resetAll", value="Reset All")$
        $post(name="deleteAll", value="Delete All")$
    $else$
        $post(name="crawlAll", value="Crawl All", disabled="true")$
        $post(name="resetAll", value="Reset All", disabled="true")$
        $post(name="deleteAll", value="Delete All", disabled="true")$
    $endif$

    $include.({$base$crawler/active}).body;format="raw"$
</div>

<ul>
    <li><a href="$base$crawler/status">Status</a></li>
    <li><a href="$base$crawler/failures/list">Failures</a></li>
</ul>

</body>
</html>